﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

using System;

namespace NSQL.Expressions.Functions
{
    public class ReverseFunction : BaseExpression, IReverseFunction
    {
        public IStringExpression Expr { get; set; }

        public ReverseFunction(IStringExpression expression) =>
            Expr = expression ?? throw new ArgumentNullException(nameof(expression));
        
        public override T Accept<T>(IExpressionVisitor<T> visitor) => visitor.Visit(this);

    }
}